Java: printing ArrayLists to file without [ ] ,
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-05-10T09:28:52Z
Indexed on
2010/05/10
9:34 UTC
Read the original article
Hit count: 193
java
hi,
I'm printing ArrayLists.toString() to a file and this is the result
[FirstLine
, SecondLine
, ThirdLine
]
I would like to remove the [ ] and , from my output. Should I use a for loop to print the content of my ArrayList or is there an alternative way ?
thanks
© Stack Overflow or respective owner